package com.tourism.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tourism.admin.mapper.BookMapper;
import com.tourism.admin.model.entity.Book;
import com.tourism.admin.service.BookService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl extends ServiceImpl<BookMapper, Book> implements BookService {
    @Override
    public List<Book> findByUserId(Integer userId) {
        return this.baseMapper.findByUserId(userId);
    }
}
